<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  <head>
    <title>信息来源列表页面</title>
    <link style="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/commons/globals.css"/>
    
     <script type="text/javascript">
    	function gopage(url){
    		window.location.href = url;
    	}
    </script>
    
  </head>
  
  <body>
    <br/><br/>
    	<table width="60%" id="table1">
    		<tr>
    			<th>编号</th>
    			<th>信息类别</th>
    			<th>操作</th>
    		</tr>
    		
    			<c:if test="${!empty orgs.getall}">
					<c:forEach items="${orgs.getall }" var="org">
						<tr>
							<th>
								${org.id }
							</th>
						   <th>
								${org.category }
							</th>
							
							<th>
								<a href="{pageContext.request.contextPath}/participle!jumpPass.action?id=${org.id }">添加关键词       </a>
								<a href="{pageContext.request.contextPath}/participle!findAllPartiiple.action?id=${org.id }">查看关键词</a>
								<a href="{pageContext.request.contextPath}/suggestion!findAllSuggestion.action?id=${org.id }">相关用户建议</a>
							</th>
						</tr>
					</c:forEach>
				</c:if>
    		
   			<tr>
    			<td colspan="3" align="left" style="border: 0px">
    				<br/><br/>
    				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    				<input type="button" value="添加信息来源" onclick="gopage('${pageContext.request.contextPath}/control/customer/infoSource.do?method=addUI')"/>
    			</td>
    		</tr>
    	</table>
  </body>
</html>

